<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>hogwarts</title>
</head>
<body>
 <p>
     {% for person2 in people1 %}
         您好:
        {% if person2.gender == "male" %} <br />
            {{ person2.name }} 先生
        {% else %} <br />
            {{ person2.name }} 女士
        {% endif %} <br />
     您的年龄是{{ person2.age }}岁 <br />
     {% endfor %}
 </p>
</body>
</html>